From bcec71b437755c7a0126a7a539824f1bea3217d6 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Tue, 17 Apr 2018 16:25:39 +0300 Subject: [PATCH] Get rid of warnings on EL7 gcc Signed-off-by: Jonathan Dieter --- src/lib/dl/multipart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dl/multipart.c b/src/lib/dl/multipart.c index 09fd4de..0d7b616 100644 --- a/src/lib/dl/multipart.c +++ b/src/lib/dl/multipart.c @@ -169,7 +169,7 @@ size_t zck_multipart_extract(zckDL *dl, char *b, size_t l) { continue; /* Run regex against download range string */ - regmatch_t match[4] = {0}; + regmatch_t match[4] = {{0}}; if(regexec(dl->priv->dl_regex, i, 3, match, 0) != 0) { if(regexec(dl->priv->end_regex, i, 3, match, 0) != 0) zck_log(ZCK_LOG_ERROR, "Unable to find multipart download range\n"); @@ -228,7 +228,7 @@ size_t zck_multipart_get_boundary(zckDL *dl, char *b, size_t size) { memcpy(buf, b, size); /* Check whether this header contains the boundary and set it if it does */ - regmatch_t match[2] = {0}; + regmatch_t match[2] = {{0}}; if(regexec(dl->priv->hdr_regex, buf, 2, match, 0) == 0) { reset_mp(dl->priv->mp); char *boundary = zmalloc(match[1].rm_eo - match[1].rm_so + 1); -- 2.30.2